/**
 *Copyright (c) 2024 watereyes
 * safetymanagement is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.institution.mapper;


import com.koron.institution.bean.InstitutionFile;
import com.koron.institution.bean.InstitutionFileCond;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface InstitutionFileMapper {
    Integer deleteByPrimaryKey(String id);

    Integer insert(InstitutionFile record);

    Integer insertSelective(InstitutionFile record);

    InstitutionFile selectByPrimaryKey(String id);

    Integer updateByPrimaryKeySelective(InstitutionFile record);

    Integer updateByPrimaryKey(InstitutionFile record);

    Integer countInstitutionByCategoryId(@Param("categoryId") String categoryId);

    List<InstitutionFile> getInstitutionListByCond(InstitutionFileCond cond);

    Integer getTotalByCond(InstitutionFileCond cond);

    Integer check(InstitutionFile institutionFile);

    InstitutionFile getInstitutionByFileName(InstitutionFile institutionFile);

    List<InstitutionFile> queryInstitution(Map param);

    List<InstitutionFile> queryInstitutionByCode(String code);

    List<InstitutionFile> queryInstitutionByCategoryId(@Param("categoryId") String categoryId);

    Integer updateReviseState(List<String> list);

    List<InstitutionFile> queryListByIds(List<String> list);

    List<InstitutionFile> getSelectList(@Param("corpCode") String corpCode, @Param("institutionType") Integer institutionType,
                                        @Param("fileName") String fileName);

    Integer deleteByCategoryId(@Param("categoryId") String categoryId);

    List<InstitutionFile> getInstitution(@Param("categoryId") String categoryId, @Param("corpCode") String corpCode);
}